package com.hexacta.hrs.report.managers;

import java.util.Comparator;

import com.hexacta.hrs.domain.staffing.Project;

public class ProjectComparator implements Comparator<Project> {

	@Override
	public int compare(Project o1, Project o2) {
		if(o1.getName().compareTo(o2.getName()) < 0 ) {
			return -1;
		}
		if(o1.getName().compareTo(o2.getName()) > 0 ) {
			return 1;
		}
		return 0;
	}

}
